package com.mf.service.impl;

import com.mf.entity.SpecItem;
import com.mf.repository.SpecItemRepository;
import com.mf.service.SpecItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: Jiang Runqing
 * @date: 2018-09-09 16:57
 */
@Service(value = "specItemService")
public class SpecItemServiceImpl implements SpecItemService {

    @Autowired
    private SpecItemRepository specItemRepository;

    @Override
    public List<SpecItem> findListBySpecId(int specId) {
        return specItemRepository.findListBySpecId(specId);
    }

    @Override
    public void save(SpecItem specItem) {
        specItemRepository.save(specItem);
    }

    @Override
    public void delete(int id) {
        specItemRepository.delete(id);
    }
}
